public class Main {
    public static void main(String[] args) {
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append('a');
        stringBuilder.append('b');
        stringBuilder.append('c');
        stringBuilder.append(10);
        stringBuilder.append(10.36);
        stringBuilder.append("abcabc");
        System.out.println(stringBuilder);
        StringBuilder stringBuilder1 = new StringBuilder();

        //支持链式编程
        stringBuilder1.append("a").append("b").append("c").append(1213).append(true);
        System.out.println(stringBuilder1);
        stringBuilder1.reverse().append("abbbccc");
        System.out.println(stringBuilder1);
        System.out.println(stringBuilder1.length());

        //回复为字符串类型
        String string = stringBuilder1.toString();
        //check(stringBuilder1);
        check(string);
    }
    public static void check(String str){
        System.out.println(str);
    }
}
